#include "aboutdialog.h"
#include "ui_aboutdialog.h"

aboutDialog::aboutDialog(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::aboutDialog)
{
    ui->setupUi(this);

    const QString html = QCoreApplication::translate(
            "AboutDialog",
            "<p align=\"center\"><font size=\"+2\"><b>听小方游戏数据生成器</b></font><br><i>Version %1</i></p>\n"
            "<p align=\"center\">File distributed with FuFangTech.</p>\n"
            "<p align=\"center\"><a href=\"https://gitee.com/LLKitty/cube-game-manager/\">https://gitee.com/LLKitty/cube-game-manager/</a></p>\n")
            .arg(QApplication::applicationVersion());

    ui->version->setHtml(html);
}

aboutDialog::~aboutDialog()
{
    delete ui;
}

void aboutDialog::on_pushButton_clicked()
{
    this->close();
}
